package com.pipi.sso.dao.manager;

import com.pipi.sso.dao.model.DormitoryBuildingDO;
import com.pipi.sso.dao.query.DormitoryBuildingQuery;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;


/**
 * Manager for DormitoryBuilding.
 */
public interface DormitoryBuildingManager {
    /**
     * query count by query condition.
     */
    int countByQuery(DormitoryBuildingQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(DormitoryBuildingQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(DormitoryBuildingDO record);

    /**
     * insert selective.
     */
    long insertSelective(DormitoryBuildingDO record);

    /**
     * select by query condition.
     */
    List<DormitoryBuildingDO> selectByQuery(DormitoryBuildingQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<DormitoryBuildingDO> selectByQueryWithPage(DormitoryBuildingQuery query);

    /**
     * select by primary key.
     */
    DormitoryBuildingDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( DormitoryBuildingDO record,  DormitoryBuildingQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(DormitoryBuildingDO record, DormitoryBuildingQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(DormitoryBuildingDO record);
}